<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
	<h1>Thêm học sinh</h1>
	<?php
	$lophoc = array();
	foreach($lops as $lop){
		$lophoc[$lop['Lop']['MaLop']] = $lop['Lop']['TenLop'];
	}
	$truonghoc = array();
	foreach($truongs as $truong){
		$truonghoc[$truong['Truong']['MaTruong']] = $truong['Truong']['TenTruong'];
	}
	$khoihoc = array();
	foreach($khois as $khoi){
		$khoihoc[$khoi['Khoi']['MaKhoi']] = $khoi['Khoi']['TenKhoi'];
	}
	echo $this->Form->create('Hocsinh');
	echo $this->Form->input('MaHS',array('type'=>'text'));
	echo $this->Form->input('HoHS');
	echo $this->Form->input('TenHS');
	echo $this->Form->input('NgaySinh');
	echo $this->Form->input('NoiSinh');
	echo $this->Form->input('DiaChi');
	echo $this->Form->input('HoTenCha');
	echo $this->Form->input('HoTenMe');
	echo $this->Form->input('MaTruong', array('type' => 'select', 'options' => $truonghoc, 'selected' => 0));	
	echo $this->Form->input('MaTruong', array('type' => 'select', 'options' => $khoihoc, 'selected' => 0));
	echo $this->Form->input('MaLop', array('type' => 'select', 'options' => $lophoc, 'selected' => 0));	
	//echo $this->Form->input('MaLop', array('type' => 'select', 'options' => array('pub' => 'publicff', 'private' => 'private'), 'selected' => 'private'));		
	echo $this->Form->end('Đồng ý');
	?>
</body>
</html>